package com.spring1;

import com.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class Demo1 {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new FileSystemXmlApplicationContext("classpath:applicationContext.xml");
        UserController userController = (UserController)applicationContext.getBean("userController");
        System.out.println(userController);

    }
}
